package com.edu.his.controller;

import com.edu.his.domain.CheckRequest;
import com.edu.his.domain.MedicalRecord;
import com.edu.his.service.CheckRequestService;
import com.edu.his.service.MedicalRecordService;
import com.edu.his.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 描述：
 * 创建人：飘
 * 创建时间：2024/12/20
 **/
@RestController
@RequestMapping("/medicalrecord")
@CrossOrigin(value = "*",maxAge = 3600)
public class MedicalRecordController {

    @Autowired
    private MedicalRecordService medicalRecordService;
    @PostMapping("/update")
    public R update(@RequestBody MedicalRecord medicalRecord) {
        return this.medicalRecordService.update(medicalRecord);
    }

}
